package com.example.demo.controller.master;

import com.example.demo.common.result.Result;
import com.example.demo.service.impl.CommonImpl;
import com.example.demo.service.requestRvo.IDRvo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/common")
public class commonController {

    @Autowired
    CommonImpl commonImpl;

    @PostMapping("/indicator")
    public Result getIndicator (@Validated @RequestBody IDRvo id ){
        return  commonImpl.getIndicator(id);
    }

}
